Skip to content

pm: the sweep's favourable answer covers the raw status read only; PD14 names the arm's rows - #34115

Merged
os-zhuang merged 1 commit into
mainfrom
claude/project-thread-bp6isi
Nov 16, 2026
Merged

os-zhuang merged 1 commit into
mainfrom
claude/project-thread-bp6isi

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #34107

Requested by Steve · project thread

Clause-②: no
Metadata-protocol: none

维护者速读

What changes

  • AGENTS.md Prime Directive 14 (contract review 6898480793, M4): "CODEOWNERS routes every Tier H surface but the low-risk catalogs" becomes "… but the low-risk arm's rows". Since pm: the low-risk arm lands an add-only ADR note as Tier S; any other ADR change stays H #33975 the root ADR tree is an arm row with no CODEOWNERS line, and an ADR tree is not a catalog. One word swap, same line, 118 bytes; AGENTS.md stays at 1050 lines.
  • favourableArmGitRead (scripts/pm/check-governed-merges.mjs, S7): it now answers only the diff-tree --raw status read (argv carries --raw, not -p). The ADR leg's diff-tree -p patch read has no favourable answer, so in the post-merge sweep an ADR landing whose patch read alone fails stays NOT MEASURED (sweep incomplete) instead of reading Tier H on a status listing handed back as a patch. The queue, the relay and --pr were never affected: there an unread ADR diff already reads H.
  • One self-test row pins it in the sweep battery: ⛔ #33539-S7-an-ADR-landing-whose-patch-read-alone-fails-stays-NOT-MEASURED-only-the-raw-read-has-a-favourable-answer. The existing N-a row that called favourableArmGitRead(['diff-tree', LANDED], …) now passes --raw (a forced test edit: the bare argv no longer has a favourable answer).

Why

PR #33975 merged from the queue at b60484d4 before these round-5 fixes could be pushed. Card #34107 carries them.

Verification

  • node scripts/pm/check-governed-merges.mjs --self-test: 863 assertions, exit 0.
  • Ablation: answering the patch read too (the pre-fix condition) reds exactly the new S7 row; restored, green.
  • pnpm check:pm-skill-ratchet green; AGENTS.md 1050 lines.
  • node scripts/pm/dispatch-gates.mjs --commands on this head: 38 derived, 38 run, all exit 0, reconciled with --ran; check:adr-anchors and the 10 importer self-tests exit 0.

Not carried

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (not touched)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes. (no formatter ran; pnpm lint not run here — no package source changed; CI's ESLint leg reads it)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. (nothing publishes: skip-changeset)
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (not touched)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English. (except the required 维护者速读 block)
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ADHkmRrk1KF2ZJk57PwVU9

…14 names the arm's rows, not the catalogs

Carries PR #33975's round-5 contract-review fixes. AGENTS.md Prime Directive 14
says CODEOWNERS routes every Tier H surface but the low-risk arm's rows, which
include the root ADR tree since #33975. favourableArmGitRead answers only the
`diff-tree --raw` status read, so an ADR landing whose `diff-tree -p` patch
read alone fails stays NOT MEASURED in the post-merge sweep instead of
reading Tier H on a stand-in; one row pins it, and an ablation reds it.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ADHkmRrk1KF2ZJk57PwVU9
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 15, 2026
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation labels Nov 15, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-steve · session_01ADHkmPd7uRqHauEehGPr19

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 94dbce5d54ed0221df061522e06babc96463e35c
Local-runs: none
Scope: AGENTS.md + scripts/pm/check-governed-merges.mjs

① Derived judgments

  • Head 94dbce5d54ed0221df061522e06babc96463e35c is one commit on f81e4b6c, which is main as read for this review (the merge base equals main). Net diff: 2 files, +17 −5: AGENTS.md (+1 −1, line 306) and scripts/pm/check-governed-merges.mjs (+16 −4: the helper's docblock and condition, the N-a row's argv, one new self-test row). Both files are the surface of claim 6899846531; nothing else is touched. The dev report 6900121433 names the same head, files and counts.
  • M4 holds. Line 306 now reads "CODEOWNERS routes every Tier H surface but the low-risk arm's rows to the approvers".
    • Against .github/CODEOWNERS at this head: the routed Tier H lines are /AGENTS.md, /CLAUDE.md, /docs/NORTH-STAR.md, /.github/workflows/ and the five ui/ rows (/ui/docs/adr/ among them). There is no /docs/adr/, /skills/ or /ui/skills/ line.
    • Against the arm's rows as the queue guard reads them: the guard's own mirror assertion holds armPatterns to /docs/adr/,/skills/,/ui/skills/, read off the register's lowRisk rows (adr carries lowRisk with addOnly: true; ui-adr carries none). The set CODEOWNERS leaves out is exactly the set the sentence names, so the sentence is true, and ui/docs/adr/** is correctly still routed.
    • The term resolves inside the directive: line 292 names "skills-only wording and add-only ADR notes (lowRiskArmVerdict)".
    • Budget: the line is 118 bytes, all ASCII, under the 120-byte cap; AGENTS.md stays at 1050 lines.
    • Other rules-face sentences: AGENTS.md names CODEOWNERS on line 306 only. .claude/skills/pm-dispatch/** names it three times (SKILL.md line 162, references/lanes/skills.md line 8, references/triage-duties.md line 93), each as a lane or duty entry, none saying what it routes. In the .github/CODEOWNERS header the two sentences that name the arm's rows are right ("the two skills catalogs and the root ADR tree ... has NO line here"; "less the low-risk arm's /docs/adr/ and /skills/ rows"). Its title line still generalises to "every Tier H governed surface", qualified lower in the same header: see N3.
  • S7 holds, read on the text and not run.
    • The trace. In the sweep readArmLanding hands the guard armGit, which records every read that throws. catalogFilesOf sends two diff-tree shapes: the status read (-r --no-commit-id --no-renames --raw -z -m --first-parent SHA) and, for a modified file under the add-only row, the patch read built by addOnlyDiffArgv(['diff-tree', '-p', '--no-commit-id', '-m', '--first-parent'], [sha], path). When only the patch read throws, catalogFilesOf carries patch: null, the arm reads H, and armUnreadInputs lists the one failed read. armSettledWithoutUnread asks favourableArmGitRead for that argv; it carries -p and no --raw, so the answer is null and the function returns null before any re-read. readArmLanding then returns not-measured with "the low-risk arm could not read git diff-tree -p ...". Before this head the same argv was answered with a status listing, addOnlyNoteReasons read it as "shows no hunk", and the landing came back tier-h.
    • Other argv shapes. Inside readLowRiskTier the guard sends exactly those two diff-tree shapes; the --name-only reads belong to the row enumeration and never pass through armGit. The status read keeps its favourable answer (it carries --raw, not -p). The row #33765-N-f still records the argv the guard really sends on the default fixture and requires a non-null answer for each, so a renamed status read reds there.
    • The N-a row edit is forced: with the new condition the bare ['diff-tree', LANDED] gets null, and the old .includes(...) on it would throw. The edit adds '--raw' to that argv and changes nothing else. The row still pins what it pinned: null for rev-parse, a clean changeset for show, a modified-file listing naming the path for the status read. It is not weaker; the live spelling is held by N-f and by the new row's third conjunct.
    • The new row #33539-S7 has three conjuncts: the end-to-end read (an ADR path, the patch read alone throwing, the result not-measured naming git diff-tree), null for the real patch argv, non-null for the real status argv. Under the pre-fix condition the second conjunct turns false at once, and the first does too by the trace above (the fixture sends no other read that could fail). The row is ablation-sensitive. The dev reports the same ablation red on exactly this row; this review did not re-run it.
    • The battery #33603 goes from 62 to 63 assertions against a declared floor of 51. The roster's rule is a floor, not an equality, so no roster edit is owed.
  • S8 holds. The 维护者速读 "风险与回滚" bullet says that with the /docs/adr/ line gone, a root ADR pull opened ready or readied by hand no longer gets GitHub's code-owner request, and that for every ADR change other than an add-only note the queue guard (refused without a GOVERNED_APPROVERS approval) and the relay's per-pull request to both approvers hold the ruling. That matches CODEOWNERS at this head, catalogFilesOf (an unread or non-add-only ADR diff reads H) and the relay behaviour that record 6898480793 read on pm: the low-risk arm lands an add-only ADR note as Tier S; any other ADR change stays H #33975.
  • Check-runs on this head are NOT a verdict yet (read 2026-11-15T19:42Z): 12 success, 23 skipped, 11 still running: Lint · CI, release & engine gates, Lint · ESLint, Lint · PM dispatch-gates, Lint · docs & code guards, Lint · repo & tooling gates, Lint · scoped · slot lookup & corpus, Lint · scoped · tooling self-tests, Test Core (1/8), Test Core (2/8), Type Check · consumer gates, Type Check · source gates. Green so far include Governed Surface Queue Guard, PR-body guards, Check Changeset, Type Check · workspace. The leg that runs this file's self-test (Lint · scoped · tooling self-tests) is among those still running, so the 863-assertion figure and the new row's green are the dev's reading until it closes. This verdict is on the text; it does not stand in for a green roll-up.
  • This round was read, not run. Nothing was built, and no self-test, gate or ablation was re-run.

② Semver level

None. No published package is touched: a rules file and a PM script. skip-changeset is on the PR and is right. Clause-②: no and Metadata-protocol: none are on the PR body, match claim 6899846531, and are right: no published schema, no metadata key, no narrowing.

③ Boundary flags

  • Tier H handling. The PR touches AGENTS.md, so it is governed and lands at Tier H; scripts/pm/check-governed-merges.mjs is also an enforcement-chain row in CODEOWNERS. The PR is a draft, auto-merge is not armed, it carries no review, and nothing in the diff readies it, relaxes a guard or touches GOVERNED_APPROVERS. It stays draft until an authorized approval. This record is the seat's review of record, ⛔ not an approval.
  • Deviation 1, the N9 hunk of commit 3bc27d49 left out. Answered: leaving it out is right. That hunk (+7 −4) only re-wraps two header comments of .github/CODEOWNERS and adds "in the root tree" and "under the low-risk arm's conditions". .github/CODEOWNERS is outside the claimed surface and the claim says stop on breach. Nothing is owed in this PR. The nit itself stays open with no carrier: see N3.
  • Deviation 2, the branch restarted as a plain push from main after pm: the low-risk arm lands an add-only ADR note as Tier S; any other ADR change stays H #33975's branch was deleted. Answered: confirmed, one commit on current main, no force, the same ref name as pm: the low-risk arm lands an add-only ADR note as Tier S; any other ADR change stays H #33975's implementation branch.
  • Human Minimum item 3 is left unticked with its reason (pnpm lint not run; no package source changed). Answered: acceptable; Lint · ESLint on this head is still running and decides it.
  • open_questions is empty. No out-of-scope note beyond the two deviations.
  • SQL push-down: n/a.

④ Design judgment

  • AGENTS.md against the code it cites: the reworded clause agrees with CODEOWNERS and with the guard's mirror on this head, as in ①. It closes M4 of record 6898480793.
  • scripts/pm/check-governed-merges.mjs against the contract it implements (review follow-ups of PR #33762 #33765 N-a: a reason from a stand-in answer never settles Tier H): the helper now has no answer for the patch read, so the sweep no longer reports a measured Tier H on a patch it did not read. The direction is the safe one: the landing is listed with the maintainer's merges and the sweep reads INCOMPLETE. The queue, the relay and --pr are unchanged; there an unread ADR diff reads H. It closes S7.

Findings:

N1 (nit) — the null answer is wider than the defect. An ADR landing whose patch read fails and which also carries a measured Tier H reason of its own (a security label, a Clause-②: yes body, a path outside the allowlist) now reads NOT MEASURED, where N-a's rule would let the measured reason settle it. That errs toward INCOMPLETE and never toward a false complete, and it is what the card ordered. The helper's docblock says "no stand-in patch is favourable" without showing it, and the readArmLanding docblock still states N-a without this exception. One clause there would do.

N2 (nit) — the two halves of the new condition are pinned only together. Both shapes the guard sends differ in both flags, so dropping either argv.includes('--raw') or !argv.includes('-p') alone turns no row red. The bare argv the N-a row used to send is the missing case: favourableArmGitRead(['diff-tree', LANDED], [SK]) === null beside the edited conjunct would pin the --raw half.

N3 (nit, off this card's surface) — #33975's N9 has no carrier. The .github/CODEOWNERS header still says an add-only note "rides the low-risk arm" without "root tree" or "under the arm's conditions", its two added lines still run past the wrap width, and its title line still reads "every Tier H governed surface" although three arm rows have no line. Each is qualified lower in the same header and the guard refuses whatever the comment over-reads, so nothing is wrong at the gate. The PR body's "Not carried" names N9 but no card holds it; fold it into the next card that opens that file.

No must-fix, no should-fix, three nits (N1 to N3). M4, S7 and S8 of record 6898480793 are closed on this head.

Implemented-by: claude/project-thread-bp6isi
Reviewed-by: session_01ADHkmPd7uRqHauEehGPr19

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-steve · session_01ADHkmPd7uRqHauEehGPr19

席位核对 · ACCEPT · head 94dbce5d54ed0221df061522e06babc96463e35c · 2026-11-15T19:53Z

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 15, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 16, 2026 01:06
@os-zhuang
os-zhuang enabled auto-merge November 16, 2026 01:06
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 16, 2026
Merged via the queue into main with commit 9ff49b9 Nov 16, 2026
55 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-bp6isi branch November 16, 2026 01:41
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pm(check-governed-merges): carry #33975's round-5 review fixes (AGENTS.md PD14 wording, patch-read favourable answer)

2 participants